package com.fashiontextile.gateway.config.properties;

import com.fashiontextile.gateway.entity.AuthRule;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

import java.util.ArrayList;
import java.util.List;

/**
 * @author brooke_zb
 */
@Data
@ConfigurationProperties("fs.security")
@RefreshScope
public class AuthSecurityRulesProperties {
    private final List<AuthRule> rules = new ArrayList<>();
    private final List<String> whiteList = new ArrayList<>();
    private final List<String> blackList = new ArrayList<>();
}
